package com.xuanwu.ai.flow._enum;


import com.xuanwu.ai.web.exception.ErrorCode;

public enum ErrorCodeEnum implements ErrorCode {

    FLOW_COMPLETE("100001", "流程名称重复"),

    FLOW_RELOAD_FAIL("100002", "流程发布加载失败"),

    TENANT_FLOW_ACCOUNT_REPEAT("100003", "租户流程账号重复"),

    FLOW_REPEAT_DEPLOY("100004", "租户流程重复发布"),

    TENANT_FLOW_ACCOUNT_NOT_EXIST("402","租户流程账号不存在"),

    CMP_EXECUTE_FAIL("601", "%s执行出错"),

    NO_VALID_TOKEN("700","调用AI识别接口缺失token");


    private String code;

    private String message;

    ErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return message;
    }
}
